<template>
  <div>
    <el-container>
      <el-header
        style="
          border: 1px;
          text-align: left;
          font-size: 50px;
          height: 70px;
          background-color: gainsboro;
        "
        >智能管理系统</el-header
      >
      <el-container>
        <el-aside
          style="
            border: 1px;
            width: 150px;
            height: 550px;
            background-color: antiquewhite;
          "
        >
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
          >
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>系统信息管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="1-1">
                    <router-link to="/dept">部门管理</router-link>
                    
                </el-menu-item>
                <el-menu-item index="1-2">
                    <router-link to="/emp">员工管理</router-link>
                </el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main style="border: 1px; height: 550px; background-color: bisque">
          <!-- //中间 -->
           <h1>
            郑磊最帅。
           </h1>
</el-main>
      








      </el-container>
    </el-container>
  </div>
</template>

<style>
</style>

<script>
import axios from 'axios';
export default {
  data() {
    return {
         startTime: '',
        endTime: '',
      formInline: {
        user: "",
        region: "",
      },
      ruleForm: {
        desc: "",
      },
      rules: {
        name: [
          { required: true, message: "请输入活动名称", trigger: "blur" },
          { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" },
        ],
        region: [
          { required: true, message: "请选择活动区域", trigger: "change" },
        ],
      },
      tableData:[],
    };
  },

  methods: {
    onSubmit() {
      console.log("submit!");
    },
  },
  mounted() {
  axios.get("http://yapi.eehp.cn/mock/61/user/findAll").then((result) => {
       this.tableData = result.data.data;
   
    });
},
};
</script>